<? $attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('advice/delsadvice', $attributes);?>

<table class="admindata">
    <thead>
        <tr>
            <th colspan="6"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có <?=$num?> bài viết <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th width="200">Tiêu đề</th>
            <th>Alias</th>
            <th class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->tv_id?>"></td>
        <td><?=$rs->subject_vn ?></td>
        <td><?=$rs->subject_us?></td>
        <td align="center"><?=icon_edit('advice/update/'.$rs->tv_id)?>
            <span id="publish<?=$rs->tv_id?>">&nbsp;<?=icon_active("'advice'", "'tv_id'", $rs->tv_id, $rs->active)?>&nbsp;</span>
            <?=icon_del('advice/del/'.$rs->tv_id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
        $k=1-$k;
        $i++;
        endforeach;?>
    <tfoot>
    <td colspan="6"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có  <?=$num?>   bài viết <?=$pagination?></td>
            </tfoot>
</table>
<?=form_close()?>
